package com.wei.czz.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-11-27 10:19:56
 * className: Auth
 * version: 1.0
 * description:
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Auth {

    /**
     * 权限数组
     */
    String[] permit() default {};

    /**
     * 角色数组
     */
    String[] roles() default {};

    /**
     * 优先级
     * 数值越小，优先级越高
     */
    int order() default 3;

}
